<div class="clear"></div>
	<div id="shareCover" class="share" onclick="document.getElementById('shareCover').style.display='none';">
		<table>
			<tr>
				<td colspan="2"  style="text-align:right;">
					<img src="/js/images/share_1.png" style="width:120px!important;" />
					<img src="/js/images/share_2.png" style="width:30px!important;" />
				</td>
			</tr>
			<tr>
				<td style="width:50%;">
					<img src="/js/images/share_4.png" />
					<div>发送给朋友</div>
				</td>
				<td>
					<img src="/js/images/share_3.png" />
					<div>分享到朋友圈</div>
				</td>
			</tr>
		</table>
	</div>
<?php
if ($fupid==24){$ishide_foot=1;
?>
<div class="foot">
<ul>
	<li><a href="/article.php?id=45"><i></i><img src="/images/t3.png" width="26" height="26" /><h1>心情调味</h1></a></li>
	<li style="position:relative;">
	<a href="/article.php?id=46"><i></i><img src="/images/t4.png" width="26" height="26" /><h1>励志成功</h1></a>
	</li>
	<li><a href="/article.php?id=47"><i></i><img src="/images/t1.png" width="26" height="26" /><h1>名人百科</h1></a></li>
	<li><a href="/article.php?id=48"><i></i><img src="/images/t2.png" width="26" height="26" /><h1>各行各业</h1></a></li>
	<li><a href="/my.php"><i></i><img src="/images/t5.png" width="26" height="26" /><h1>我的阅读</h1></a></li>
</ul>
</div>
<?php
}?>
<script>
function shareCover_show(){
document.getElementById('shareCover').style.display='block';
}
</script>
<?php if ($fenxiang_hide!=1){?>
	<div id="mcover" onClick="document.getElementById('mcover').style.display='';" style="display:none;">
		<img src="/js/images/guide.png">
	</div>
	<!-- <div class="more" id="pagemore" style=" margin-bottom:10px; margin-top:10px;"><a href="weixin://contacts/profile/jinanyf">点击关注 -->
	<?php //echo $webdb["vpp_jigoucode"]?>
	<!-- </a></div> -->
	<div class="text" id="content">
		<div id="mess_share">
			<div id="share_1">
				<button class="button2" onClick="setShareInfo();">
					<img src="/js/images/icon_msg.png">&nbsp;发送给朋友
				</button>
			</div>
			<div id="share_2">
				<button class="button2" onClick="setShareInfo();">
					<img src="/js/images/icon_timeline.png">&nbsp;分享到朋友圈
				</button>
			</div>
			<div class="clr"></div>
		</div>
		<input type="hidden" value="0" id="already" />
	</div>
	<script>
		//点击分享好友/朋友圈 added by Tony
		function setShareInfo(){
			document.getElementById('mcover').style.display='block';
// 			var targetid = $('#targetid').val();
// 			var already = document.getElementById('already').value;
// 			if(targetid && already<1){
// 				$.post('/share.php?type=check',{'targetid':targetid},function(re){
// 					var already = parseInt(document.getElementById('already').value);
// 					if(!already){
// 						document.getElementById('already').value=1;
// 					}
// 				},'json');
// 			}
			var ident="<?php echo urlencode($_SERVER['REQUEST_URI']);?>";
			var already = document.getElementById('already').value;
			if(already<1){
				$.post('/share.php?type=check',{'ident':ident},function(re){
					var already = parseInt(document.getElementById('already').value);
					if(!already){
						document.getElementById('already').value=1;
					}
				},'json');
			}
		}
	</script>
<?php }
if ($fenxiang_jshide!=1){
?>
<script type="text/javascript">
		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
		var shareStr = "?ident=<?php echo urlencode($_SERVER['REQUEST_URI']);?>";
		var nowUserId = "<?php echo $_COOKIE['userid'];?>";
		var targetuserid = "<?php echo $_COOKIE['share_targetuserid'];?>";
		if(nowUserId){
			if(targetuserid != nowUserId){
				shareStr += "&shareparenttargetuserid=<?php echo $_COOKIE['share_targetuserid'];?>&sharetargetuserid=<?php echo $_COOKIE['userid'];?>";
			}else{
				shareStr += "&shareparenttargetuserid=&sharetargetuserid=<?php echo $_COOKIE['userid'];?>";
			}
		}
		else{
			shareStr += "&shareparenttargetuserid=<?php echo $shareparenttargetuserid;?>&sharetargetuserid=<?php echo $sharetargetuserid;?>";
		}
        window.shareData = {  
           "imgUrl": "<?php if (trim($webdb[weixinlogo])!=""){echo get_photourl($webdb[weixinlogo]);}?>", 
            "timeLineLink": "<?php echo $WEBURL;?>"+shareStr,
            "sendFriendLink": "<?php echo $WEBURL;?>"+shareStr,
            "weiboLink": "<?php echo $WEBURL;?>"+shareStr,
            "tTitle": "<?php echo $webdb['vpp_jigoucode']."—".$web_title?>",
            "tContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>",
            "fTitle": "<?php echo $webdb['vpp_jigoucode']."—".$web_title?>",
            "fContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>",
            "wContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>" 
        };
        // 发送给好友
        WeixinJSBridge.on('menu:share:appmessage', function (argv) {
            WeixinJSBridge.invoke('sendAppMessage', { 
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.sendFriendLink,
                "desc": window.shareData.fContent,
                "title": window.shareData.fTitle
            }, function (res) {
                _report('send_msg', res.err_msg);
            })
        });

        // 分享到朋友圈
        WeixinJSBridge.on('menu:share:timeline', function (argv) {
            WeixinJSBridge.invoke('shareTimeline', {
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function (res) {
                _report('timeline', res.err_msg);
            });
        });

        // 分享到微博
        WeixinJSBridge.on('menu:share:weibo', function (argv) {
            WeixinJSBridge.invoke('shareWeibo', {
                "content": window.shareData.wContent,
                "url": window.shareData.weiboLink,
            }, function (res) {
                _report('weibo', res.err_msg);
            });
        });
        }, false)
</script>
<?php }
if (trim($_COOKIE["mxadminwx"]["wxmxopenid"])!=""){
	if (!is_array($vpp_user_info)){$vpp_user_info=$db->getinfo("select * from mx_user where weixinid='$wxmxopenid' limit 1");}
	if (is_array($vpp_user_info)){
		//if(date("Y-m-d",strtotime($vpp_user_info["lastlogintime"]))!=date("Y-m-d")){
			//判断是否当天第一次登陆
			$db->excu("update mx_user set logindays=logindays+1,logintimes=logintimes+1,lastlogintime='".date("Y-m-d H:i:s")."' where id='$vpp_user_info[id]'");
//		}
//		elseif (time()-strtotime($vpp_user_info["lastlogintime"])>=1800){
//			//只更新最后坐标
//			$db->excu("update mx_user set lastlogintime='".date("Y-m-d H:i:s")."' where id='$vpp_user_info[id]'");
//		}
	}
}


if ($ishide_foot!=1){
	?>
<div id="ly_foot">
	<ul>
		<li><a href="/"><img src="/images/home.png" width="25" height="25" />首页</a></li>
		<li><a href="tel:053167898118"><img src="/images/phone.png" width="25" height="25" />电话</a></li>
		<li><a href="http://map.baidu.com/mobile/webapp/place/detail/qt=ninf&wd=%E5%8E%86%E4%B8%8B%E5%8C%BA%E6%96%87%E5%8C%96%E4%B8%9C%E8%B7%AF%E5%B1%B1%E5%B8%88%E5%8C%97%E8%A1%9714%E5%8F%B7%E5%B1%B1%E4%B8%9C%E5%B8%88%E8%8C%83%E5%A4%A7%E5%AD%A6%E6%AD%A3%E9%97%A8%E5%AF%B9%E8%BF%87&c=288&searchFlag=bigBox&version=5&exptype=dep&uid=a91afbc2964278808bb988fd&industry=beauty/showall=1&detail_from=list&vt=map/?fromhash=1"><img src="/images/gps.png" width="25" height="25" />位置</a></li>
        <li><a href="/guest.php"><img src="/images/msg.png" width="25" height="25" />留言</a></li>
        <li style="background:none;"><a href="http://wifi.mxsoft.net/index.php?from=groupmessage&isappinstalled=0"><img src="/images/wifi.png" width="25" height="25" />关于WiFi</a></li>
	</ul>
</div>
<script>
$(document).ready(function(){
  $("input,textarea").focus(function(){
	  $(this).addClass('sel_is_foot');
	  $('#ly_foot').attr('id','ly_foot2');
  });
  $("input,textarea").blur(function(){
	  $('#ly_foot2').attr('id','ly_foot');
  });

  $("select").click(function(){
	  $('#ly_foot').attr('id','ly_foot2');
  });
  $("select").change(function(){
	  $('#ly_foot2').attr('id','ly_foot');
  });
  $("option").click(function(){
	  $(this).parent().blur();
	  $('#ly_foot2').attr('id','ly_foot');
  });
});
</script>
<?php }
?>
<div style="display:none"><script language="javascript" src="http://count35.51yes.com/click.aspx?id=358390026&logo=1" charset="gb2312"></script></div>
